import Vue from "vue";
import VueRouter from "vue-router";
import HelloWorld from "./views/HelloWorld.vue";
import Home from "./views/Home.vue";
import CodeTable from "./views/CodeTable.vue";
import Contract from "./views/Contract.vue";
import Page404 from "./views/404.vue";
Vue.use(VueRouter);
const routes = [
  {
    path: "/",
    component: HelloWorld,
  },
  {
    path: "/profess",
    component: Home,
  },
  {
    path: "/code",
    component: CodeTable,
  },
  {
    path: "/contract",
    component: Contract,
  },
  {
    path: "*",
    component: Page404,
  },
];

const router = new VueRouter({
  routes,
});

export default router;
